//
//  NSString+BlankString.m
//  Pods
//
//  Created by Mac on 14-7-23.
//
//

#import "NSString+BlankString.h"

@implementation NSString (BlankString)


+ (BOOL) isBlankString:(NSString *)string {
    
    
        
  
    if (string == nil || string == NULL) {
        
        return YES;
        
    }
    
    if ([string isKindOfClass:[NSNull class]]) {
        
        return YES;
        
    }
    if ([string isEqualToString:@""]) {
        return YES;
    }
    
    if (string.length==0) {
        
        return YES;
    }
    
    if ([string isMemberOfClass:[NSString class]]) {
    if ([[string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0) {
        
        return YES;
        
    }
    }
    
    return NO;
    
} 

@end
